package meatslope2.gameengine.gameobjects.model;

import meatslope2.gameengine.primatives.Vector2;

public class GameObject 
{
	// ===========================================================
	// Members
	// ===========================================================
	
	//Position
    protected final Vector2 position = new Vector2();
    
	//Whether or not to draw the GameObject
    private int state = GameObjectState.STATE_ALIVE;
    
	// ===========================================================
	// Getters/Setters
	// ===========================================================
    
	public Vector2 getPosition()
	{
		return this.position;
	}
    
    public boolean isDead()
    {
    	return this.state == GameObjectState.STATE_DEAD;
    }
    
	// ===========================================================
	// Methods
	// ===========================================================
    
    public void destroy()
    {
    	this.state = GameObjectState.STATE_DEAD;
    }
    

}
